import instance from '@/utils/request'

// 发布新文章
export const addArticle = (data) => {
  return instance.post('/my/article/add', data)
}

// 获取文章
export const getArticle = () => {
  return instance.get('/my/article/get')
}

// 搜索文章
export const searchArticle = (data) => {
  return instance.post('/my/article/search', data)
}
